﻿@model TracNghiem.Areas.Admin.Models.Bai_VietModels
<div class="container_12">       
    <div class="grid_12">            
        <div class="module">
                <h2 align="right"><span><a href="@Url.Action("index", "bai_viet")">Quay lại</a></span></h2>                       
                <div class="module-body">
                @using (Html.BeginForm("Editbaihoc", "bai_viet", FormMethod.Post, new { id = "bai_viet", enctype = "multipart/form-data" }))
                {                      
                    <div align="center"><h3>CHỈNH SỮA BÀI VIẾT DỊCH VỤ</h3>
                        @*<div class="account" align="center"> 
                            <img src="sdf/sdf" />
                        </div>*@
                    </div>
                    if (TempData["msg"] != null)
                    {                            
                        <span class="notification n-error">@TempData["msg"]</span>
                    }  
                    <p></p>
                    <table> 
                            <p>
                                <label style="padding-left: 30%;">Dịch vụ:</label> 
                                <div style="padding-left: 29%;"> 
                                   @* @if (Model.service_id != null)
                                    {                               
                                        @Html.DropDownListFor(x => x.dichvu_id, Model.service_id, new { style = "margin-left:17px" })  
                                    }*@

                                       <select id="dichvu_id" name="dichvu_id" style="margin-left:17px">
                                @Html.Raw(ViewBag.theanh);
</select>

                                </div>                          
                            </p> 
                            <p>
                                <label style="padding-left: 30%;">Tên bài viết :</label>
                                <div style="padding-left: 30%;">
                                    @*@Html.TextBoxFor(model => model.name, new { @name = "name", @class = "input-medium" }) *@
                                    @Html.TextArea("name", Model.name, new { rows = 2, @class = "input-long" })
                                    <font color="red">(*)</font>
                                    <label style="width:56%; text-align:left;color:red">
                                        @Html.ValidationMessageFor(model => model.name)
                                    </label>
                                </div>                                                
                            </p>  
                            <p>
                                <label style="padding-left: 30%;">Hình ảnh: <img src="@Url.Content("~/Content/themes/anh/" + @Model.anh)" /></label>
                                <div style="padding-left: 30%;">
                                      <input name="anh" type="file" />

                                       <input name="anh_" type="hidden" value="@Model.anh" />
                                  
                                </div>                                                
                            </p>  
                           

                               <p>
                                <label style="padding-left: 30%;">Tóm tắt :</label>
                                <div style="padding-left: 30%;">
                                    @*@Html.TextBoxFor(model => model.name, new { @name = "name", @class = "input-medium" }) *@
                                    @Html.TextArea("tomtat", Model.tomtat, new { rows = 5, @class = "input-long" })
                                    <font color="red">(*)</font>
                                    <label style="width:56%; text-align:left;color:red">
                                        @Html.ValidationMessageFor(model => model.tomtat)
                                    </label>
                                </div>                                                
                            </p>  
                            
                            
                        
                    </table>
                    <div class="button" align="center">
                        <p style="width:26%; text-align:center">
                            <input class="submit-green" type="submit" value="Sửa"/> 
                            <input class="submit-gray" type="reset" value="Hủy" />
                            
                        </p>
                    </div>
                }
                </div> <!-- End .module-body -->
        </div>  <!-- End .module -->
        <div style="clear:both;"></div>
    </div> <!-- End .grid_12 --> 
    <div style="clear:both;"></div>
</div> <!-- End .container_12 -->
